class Person {
	String name
	int age
}

def p = new Person()
p.name = "zhang3"
p.age = 30
println p.name

def p2 = new Person(name: "li4")

class Person2 {
	String name
	int age
	
	public void setName(String name) {
		this.name = "wang5"
	}
}

def p3 = new Person2()
p3.name = "abc"
println p3.name